package xyz.gzdxc.common.service;

import xyz.gzdxc.common.vo.request.LoginReqVo;
import xyz.gzdxc.common.vo.response.CaptchaResp;

public interface LoginService {
    /**
     * get check code
     * @return CaptchaEntity
     * throws Exception
     */
    CaptchaResp getCheckCode() throws Exception;

    /**
     * the user login
     *
     * @param loginReqVo
     * @return userSessionId
     * @throws Exception
     */
    String login(LoginReqVo loginReqVo) throws Exception;

    /**
     * logout
     * @param loginSession
     * @return boolean
     */
    boolean logout(String loginSession) throws Exception;
}
